package com.yuxi.controller.manager;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RestController;
import com.yuxi.pubInter.exception.SkException;
import com.yuxi.pubInter.IBaseService;
import com.yuxi.pubInter.RestfulController;
import com.yuxi.dto.AdminPermissionGroupDTO;
import com.yuxi.dto.AdminPermissionGroupPageDTO;
import com.yuxi.modelExt.AdminPermissionGroupExt;
import com.yuxi.searchExt.AdminPermissionGroupSearchExt;
import com.yuxi.service.IAdminPermissionGroupService;
import com.yuxi.vo.AdminPermissionGroupDetailVO;
import com.yuxi.vo.AdminPermissionGroupListVO;
import com.yuxi.vo.AdminPermissionGroupDomainVO;
import com.yuxi.vo.AdminPermissionGroupDetailDomainVO;
import org.springframework.validation.annotation.Validated;
import java.util.Set;
import java.util.HashSet;
import com.yuxi.pubInter.exception.BusinessException;

/**
*    @author sunke
*    @Date 2023-10-13 10:28:17
*    @description AdminPermissionGroupController      员工权限组
*/
@Api(tags = "后台管理系统-员工权限组相关", description = "员工权限组相关接口")
@RestController(value ="adminPermissionGroupRestfulController")
@RequestMapping("/manager/adminPermissionGroup/")
@Validated
public class AdminPermissionGroupController extends ApiManageController<AdminPermissionGroupDTO,AdminPermissionGroupPageDTO,AdminPermissionGroupExt, AdminPermissionGroupSearchExt,AdminPermissionGroupDomainVO,AdminPermissionGroupDetailDomainVO,AdminPermissionGroupDetailVO,AdminPermissionGroupListVO,String> {

	@Resource(name = "adminPermissionGroupService")
	private IAdminPermissionGroupService adminPermissionGroupService;



	@Override
	public IBaseService<AdminPermissionGroupExt, AdminPermissionGroupSearchExt,String> getBaseService() throws SkException {
		return adminPermissionGroupService;
	}

	@Override
	public String getBaseRoute() {
		return "/manager/adminPermissionGroup/";
	}

	/**
	* 当前模板名称
	* @return
	*/
	@Override
	public String getModelName(){
		return "员工权限组";
	}



	@Override
	public Set<String> totalMapSet() {
		Set totalMapSet=new HashSet();
		totalMapSet.add("count(admin_permission_group.apg_id) as countNum");
		return totalMapSet;
	}


}